Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] 체크리스트 업데이트 시 지하철 역도 변경되도록 수정한다 #882

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

tsulocalize
Copy link
Contributor

❗ Issue

✨ 구현한 기능

지하철 역 업데이트 오류 수정

📢 논의하고 싶은 내용

🎸 기타

Copy link
Contributor

@JINU-CHANG JINU-CHANG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨어요 👍 사소한 RC있습니다~

@Query("UPDATE ChecklistStation cs " +
"SET cs.deleted = true " +
"WHERE cs.checklist.id = :checklistId")
void deleteAllByChecklistId(Long checklistId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@param 붙여주세용 ㅠㅠ 자꾸 터져요 ..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반영했습니다!

@@ -157,6 +157,15 @@ public static ChecklistRequest CHECKLIST_UPDATE_REQUEST() {
);
}

public static ChecklistRequestV1 CHECKLIST_UPDATE_REQUEST_V1() {
return new ChecklistRequestV1(
RoomFixture.ROOM_UPDATE_REQUEST(), List.of(1, 2, 3, 4),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RoomFixture.ROOM_UPDATE_REQUEST(), List.of(1, 2, 3, 4),
RoomFixture.ROOM_UPDATE_REQUEST(), List.of(Option.BED.getId(), Option.INDUCTION.getId() ... ),

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반영했습니다!

@@ -63,4 +64,19 @@ void findByChecklistId_noData_exception() {
assertThat(checklistStationRepository.findByChecklist(checklist))
.isEmpty();
}

@DisplayName("체크리스트 아이디를 통한 삭제 성공")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DisplayName에 지하철에 대한 내용이 포함되면 좋겠어요!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChecklistStationRepositoryTest라 저는 포함하지 않아도 괜찮을 것 같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

일단 안붙이는 방향으로 가보겠습니다!

Copy link
Contributor

@shin-jisong shin-jisong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다~

@@ -63,4 +64,19 @@ void findByChecklistId_noData_exception() {
assertThat(checklistStationRepository.findByChecklist(checklist))
.isEmpty();
}

@DisplayName("체크리스트 아이디를 통한 삭제 성공")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChecklistStationRepositoryTest라 저는 포함하지 않아도 괜찮을 것 같아요!

Copy link
Contributor

@tkdgur0906 tkdgur0906 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니닷~

@tkdgur0906 tkdgur0906 merged commit 46c04d6 into dev-be Oct 24, 2024
2 checks passed
@tkdgur0906 tkdgur0906 deleted the fix/881-update-subway branch October 24, 2024 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants